package com.nicy.molly.service.impl;

import com.nicy.molly.service.DemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

/**
 * @description: 服务提供方
 * @projectName:molly
 * @see:com.nicy.molly.service.impl
 * @author:NicyYe
 * @createTime:2021/3/12 10:05
 * @version:1.0
 */
@DubboService(version = "1.0.0")
public class DefaultDemoService implements DemoService {

    @Value("${dubbo.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        return String.format("[%s] : Hello,%s",serviceName,name);
    }
}
